import request from '../utils/request';


export function fetchSSRSReport(permID, params) {
    var data = new FormData()
    data.append('ReportParams', JSON.stringify(params))
    return request(`/api/restricted/SSRSReport//${permID}`, {
        method: 'POST',
        body: data
    });
}

export function fetchNtlmOptions(){
    return request(`/api/restricted/NtlmOptions`, {
        method: 'GET'
    });
}
export function fetchControls(permID) {
    return request(`/api/restricted/ReportControls/${permID}`, {
        method: 'GET'
    });
}

export function fetchControlsUrl(){
    return request(`/api/restricted/ReportControlsUrl`,{
        method: 'GET'
    })
}
